package io.scnb.lesson001.demo22.test3;

import org.springframework.core.annotation.AliasFor;
import org.springframework.stereotype.Component;

import java.lang.annotation.*;

@Documented
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Component
public @interface MyBean {

    // 支持对在@MyBean注解中指定bean的名称
    @AliasFor(annotation = Component.class)
    String value() default "";
}
